CFLAGS=-I/usr/local/cuda/include -I/home/anaik/NVIDIA_GPU_Computing_SDK/C/common/inc 
LDFLAGS=-lglut -lGLEW -L/home/anaik/NVIDIA_GPU_Computing_SDK/C/lib -lcutil -lrendercheckgl 

OBJS=main.o boids.o boid_kernel.o
P=simboid

all: $(P)

$(P): $(OBJS)
	nvcc -o $@ $^ $(LDFLAGS)

%.o: %.c
	g++ $(CFLAGS) -c $< 

%.o: %.cu
	nvcc $(CFLAGS) -c $< #-arch=sm_13

.PHONY: clean

clean:
	rm -f $(P) $(OBJS) *~
